//
//  TestViewController.m
//  Tabbar
//
//  Created by 吴志勇 on 2020/4/9.
//  Copyright © 2020 wzy. All rights reserved.
//

#import "TestViewController.h"
#import "textView.h"


@interface TestViewController ()

@property (nonatomic, strong) textView *textView;

@end

@implementation TestViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.titleLabel.text = @"我是最里面的";
    self.view.backgroundColor = [UIColor purpleColor];
    [self.view addSubview:self.textView];
    self.textView.frame  = CGRectMake(200, 200, 100, 100);
}

-(void)dealloc{
    NSLog(@"最里面的销毁");
}

- (textView *)textView{
    if (!_textView) {
        _textView = [[textView alloc] init];
        _textView.backgroundColor = [UIColor redColor];
    }
    return _textView;
}

@end
